#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int i, k, j, n;
	char ch[27] = "abcdefghijklmnopqrstuvwxyz";
	while (~scanf("%d", &n))
	{
		for (i = 1; i <= n; i++) {
			printf("a");
			for (j = 0; j < n - i; j++) printf(" ");
			for (k = 0; k < i; k++) {
				printf("%c", ch[k]);
			}
			printf("\n");
		}
		printf("\n");
	}


	return 0;
}
//1125